home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1995-10-18 | 3.7 KB | 84 lines |
- 10 CLEAR,32768:KEY OFF:CLS
- 15 GOTO 1020
- 20 X$="system":KEY 10,X$+CHR$(13):KEY 5,"LIST 1000-"+CHR$(13)
- 25 KEY 4,"SAVE"+CHR$(34)+"VWXH"
- 30 DEF SEG=&H4F00
- 40 BLOAD "vu640a.asm",&H100
- 41 IF VC=2 THEN POKE 408,16
- 49 PRINT:PRINT:PRINT:PRINT:PRINT:PRINT" K3BC WEATHERFAX VIEWING (640 pixels/line)"
- 50 PRINT:PRINT" This program is for viewing on a VGA (640x480) machine a picture that was"
- 60 PRINT"captured with the WXH program and has been SAVEd in either FULL or COMPRESSED"
- 70 PRINT"format. When a picture is selected using the cursor, it is initially"
- 110 PRINT"displayed in the GRAY colors. Hit 1, 2, 3, or 4 to get other color schemes."
- 120 PRINT"Palette 2 choice gives the Gray . Scrolling is done with the arrow keys,"
- 140 PRINT"and HOME removes the scrolling. Turn printer ON and hit P(rint) to print."
- 150 PRINT"Q(uit) exits the picture where you can hit F2 to reRUN or F10 to goto DOS."
- 160 PRINT" Hit F5 twice to see the SYSTEM CONFIGURATION choices available for "
- 170 PRINT"possible modification."
- 180 FOR F=3728 TO 3775:READ G:POKE F,G:NEXT F
- 197 IF AU=1 THEN PA$=DF$:GOTO 210
- 199 PRINT:PRINT:PRINT:PRINT" F5=SYS CONFIG F10=DOS"
- 200 INPUT" What Path or Directory is file in (Default=DF$)";PA$
- 201 IF PA$="" THEN PA$=DF$
- 202 IF PA$="system" THEN CLS: SYSTEM
- 203 IF PA$="LIST 1000-" THEN CLS:PRINT" F5=SYS CONFIG F2=ReRUN F10=DOS":END
- 205 PRINT:INPUT" Is the file in compressed form--y or n (Default=y)";Y$
- 210 IF Y$="" THEN Y$="y"
- 220 IF Y$="n" THEN GOTO 275
- 230 IF Y$="y" GOTO 250
- 240 GOTO 199
- 245 IF VC=2 THEN POKE 408,16
- 250 CLS:FILES PA$+"*.zip":GOSUB 400
- 252 SHELL "wxzip-v "+A$+" "+PA$:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT
- 253 PRINT:INPUT" Is the file (1)16 grays .VGA (2)64 grays .SVG or (3)Neither (Default=1)";Q
- 254 IF Q=0 THEN Q=1
- 255 IF Q>2 THEN CLS:PRINT" F2=Another pix F5=SYS CONFIG F10=DOS":END
- 256 IF Q=2 THEN DEF SEG=&H4F00: BLOAD "vuwxa.asm",&H100:POKE &H142,BS
- 257 IF Q=1 THEN ZN$=".vga"
- 258 IF Q=2 THEN ZN$=".svg"
- 260 SHELL "wxunzp "+A$+" "+PA$+" "+ZN$
- 270 A$="pix.wx":GOTO 310
- 275 PRINT:INPUT" Is the file (1)16 grays .VGA or (2) 64 grays .SVG (Default=1)";Q
- 276 IF Q=0 THEN Q=1
- 277 IF Q>2 THEN GOTO 275
- 278 IF Q=1 THEN CLS:FILES PA$+"*.vga":GOSUB 400
- 280 IF Q=2 THEN CLS:FILES PA$+"*.svg":GOSUB 400
- 290 IF A$="" THEN A$="pix.wx":GOTO 310
- 300 IF Q=1 THEN A$=PA$+A$+".vga"
- 305 IF Q=2 THEN A$=PA$+A$+".svg":DEF SEG=&H4F00:BLOAD "vuwxa.asm",&H100:POKE &H142,BS
- 310 DEF SEG=&H4F00:K=&H100:CALL K(A%,B%,A$)
- 320 PRINT:PRINT:PRINT:PRINT" HIT F2 FOR ANOTHER PIX-----HIT F10 TO GOTO DOS"
- 330 END
- 340 'These data are for palette no.1. Each group of 3 is red, green, blue
- 350 'amplitudes. That is: 0,0,0=Black; 63,0,0=Bright Red; 63,63,63=White;etc.
- 360 'You can change them to form your own palette. Max. amplitude is 63.
- 365 '370-390 is one inactive palette (with apostrophes)--391-393 is active one
- 370 'DATA 0,0,0,0,31,0,0,47,0,0,63,0,31,63,0,63
- 380 'DATA 0,47,63,0,31,63,0,16,63,0,0,63,16,0,63,31
- 390 'DATA 0,63,47,0,63,63,0,47,63,0,31,63,0,63,63,63
- 391 DATA 63,0,0,4,4,4,8,8,8,11,11,11,14,14,14
- 392 DATA 17,17,17,20,20,20,24,24,24,29,29,29,32,32,32
- 393 DATA 36,36,36,40,40,40,45,45,45,50,50,50,56,56,56,63,63,63
- 400 PRINT" MOVE CURSOR TO FILE"
- 410 DEF SEG=&H6F00:BLOAD "pickfile.asm",&H100
- 420 K=&H100:CALL K
- 430 FOR Y=&H190 TO &H19C
- 440 Z=PEEK(Y)
- 450 IF Z=32 OR Z=46 THEN GOTO 480
- 460 Z$=CHR$(Z)
- 470 A$=A$+Z$:NEXT Y
- 480 PRINT A$
- 490 RETURN
- 1000 ' SYSTEM CONFIGURATION
- 1010 ' xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- 1020 VC=1 'Video Card--VC=1 VGA (640x480)--VC=2 EGA (640x350)
- 1030 AU=0 'AU=0 is No auto choices--AU=1 is automatic default choices
- 1035 BS=4 'Bankshift (from 0 to 6--ATI=0 and Diamond=4, etc.)
- 1040 DF$="c:\tv\" 'default PATH where most of pix files are stored
- 1100 GOTO 20
- 1115 ' ------- INSTRUCTIONS -------
- 1120 ' To change the configuration, move cursor and type new choice and
- 1130 ' ENTER. Move the cursor in the clear and hit F5 to check change.
- 1140 ' To save the change, move cursor in the clear, hit F4, then type
- 1150 ' VWXH and ENTER. F2 will then reRUN the program or F10 goes to DOS.
-